@extends("Admin.AdminPublic.publics")
@section("main")
<div class="container">

                                                            
                    
 
 
  <div class="mws-panel grid_8"> 
   <div class="mws-panel-header"> 
    <span><i class="icon-table"></i><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> 分类列表</font></font></span> 
   </div> 
   <div class="mws-panel-body no-padding"> 
    <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
    <form action="/adminusers" method="get">
     <div class="dataTables_filter" id="DataTables_Table_1_filter">
      <label><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">搜索：用户名 </font></font><input type="text" name="keyword" aria-controls="DataTables_Table_1" value=""><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">邮箱 </font></font><input type="text" name="keywords" aria-controls="DataTables_Table_1" value=""></label>
      <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"><input type="submit" class="btn btn-success" value="搜索"></font></font>
     </div>
     </form>
     <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info"> 
      <thead> 
      		

       <tr role="row">
        <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="渲染引擎：激活以对列进行降序排序" style="width: 140px;"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">ID</font></font></th>
        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="浏览器：激活以对列升序进行排序" style="width: 192px;"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">c_name</font></font></th>
        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="平台：激活以对列升序进行排序" style="width: 179px;"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">pid</font></font></th>
        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="引擎版本：激活以对列升序进行排序" style="width: 120px;"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">path</font></font></th>

        <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS等级：激活以对列升序进行排序" style="width: 87px;"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">操作</font></font></th>
       </tr> 

      </thead> 
      <tbody role="alert" aria-live="polite" aria-relevant="all">
@foreach($cates as $k => $v)
      	       <tr class="odd"> 
      		
        <td class="  sorting_1"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{$k+1}}</font></font></td> 
        <td class=" "><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{$v->name}}</font></font></td> 
        <td class=" "><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{$v->pid}}</font></font></td> 

        <td class=" "><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{$v->path}}</font></font></td> 
        <td class=" ">
          <form action="/admincates/{{$v->id}}" method="post">
            {{csrf_field()}}
            {{method_field('DELETE')}}          
            <button type="submit" class="btn btn-danger"><i class="icon-trash"></i></button>
          </form>
           <a href="/adminusers/{{$v->id}}/edit" class="btn btn-success"><i class="icon-wrench"></i></a></td> 

       </tr>
  @endforeach
             </tbody>
     </table>
     <div class="dataTables_paginate paging_full_numbers" id="pages">
      
     </div>
    </div> 
   </div> 
  </div>
 

                    

                               
                    <!-- Panels End -->
                </div>
@endsection
@section("title","分类首页")